function upItem() {
	var itemId = $("#itemId").val();
	var title = $("#title").val();
    var description = $("#description").val();
    var imgUrl = $("#imgUrl").val();
    var price = $("#price").val();
	var titleStock = $("#titleStock").val();
 	var titleSales = $("#titleSales").val();
     $.ajax({
        url: "/updItem",
        data: {
        	"itemId":itemId,
            "title": title,
            "description":description,
            "price": price,
            "titleStock": titleStock,
            "titleSales": titleSales,
            "imgUrl":imgUrl,
        },
        type: "POST",
        cache: false,
        success: function (data) {
        	if (data.status == "success") {
                alert(data.data);
                var index=parent.layer.getFrameIndex(window.name);
            	parent.layer.close(index);
            	parent.location.reload(false);
             } else {
             	alert(data.data);
             	var index=parent.layer.getFrameIndex(window.name);
            	parent.layer.close(index);
             }
        }
    })
}

